﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="GridViewGioHang.ascx.cs" Inherits="Pages_GridViewGioHang" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<%@ Register assembly="DevExpress.Web.ASPxGridView.v11.1, Version=11.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxGridView" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.ASPxEditors.v11.1, Version=11.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dx" %>

<style type="text/css">
    .giohanghead
    {
        width: 669px;
        height: 35px;
        background:url(../Images/GioHangView.png);
    }
     .giohangbody
    {
        width: 669px;
        
       
    }
</style>
<div class="giohangbody">
    <div  class="giohanghead" align="center">Thông Tin Giỏ Hàng  </div>
    <div align="left">Trang Bán Hoa </div>
  <div align="center">
  <asp:GridView runat="server" ID="GridViewGioHang" AutoGenerateColumns="False" 
          Width="636px" CellPadding="4" ForeColor="#333333" GridLines="None" DataKeyNames="Masp" 
        EmptyDataText="Chưa có thẻ nào trong giỏ hàng." 
          onrowcommand="GridViewGioHang_RowCommand">
      <AlternatingRowStyle BackColor="White" />
      <Columns>
          <asp:BoundField HeaderText="Tên Hoa" DataField="TENSP" />
          <asp:TemplateField HeaderText="Số Lượng">
                <ItemTemplate>  
                            <asp:TextBox runat="server" ID="txtQuantity"  Columns="5" Text='<%# Eval("SoLuong") %>'></asp:TextBox><br />  
                         
                   
                            <asp:LinkButton runat="server" ID="btnRemove" Text="Xóa" CommandName="Remove" CommandArgument='<%# Eval("Masp") %>' style="font-size:12px;"></asp:LinkButton>  
  
                        </ItemTemplate>  
          </asp:TemplateField>
          <asp:BoundField HeaderText="Đơn Giá" DataField="DONGIA" />
          <asp:BoundField HeaderText="Tổng Giá" DataField="TONGGIA" />
          <asp:BoundField DataField="CONLAI" HeaderText="Còn Lại" />
      </Columns>

      <EditRowStyle BackColor="#2461BF" />
      <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
      <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
      <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
      <RowStyle BackColor="#EFF3FB" />
      <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
     

  </asp:GridView>
  </div>

      <div style="width: 155px; float:left;" > 
            <dx:ASPxButton ID="btCapNhatGh" runat="server" Text="Cập Nhật Giỏ Hàng"        
                Width="133px" onclick="btCapNhatGh_Click" style="height: 25px">
            </dx:ASPxButton></div>
          <div style="float:left; width: 126px;">  <dx:ASPxButton ID="btmuathem" 
                  runat="server" Text="Chọn Mua Thêm" Width="112px" onclick="btmuathem_Click">
            </dx:ASPxButton></div>
        <div style=" width: 116px; margin-left: 0px; float:left">    
            <dx:ASPxButton ID="btThanhtoan" 
                runat="server" Text="Thanh Toán" Width="92px" onclick="btThanhtoan_Click">
            </dx:ASPxButton>
            </div>

<div style=" width: 116px; margin-left: 0px; float:left; color: #000000;">Tổng SL Mua<br/> <asp:Label 
        ID="lbtongsl" runat="server" Text="" Font-Bold="True" 
        ForeColor="Red"></asp:Label>
    </div>
<div style=" width: 116px; margin-left: 0px; float:left">Tổng Số Tiền <br />
    <asp:Label ID="lbtongtien" runat="server" Text="" ForeColor="Red" 
        Font-Bold="True"></asp:Label>&nbsp;đ</div>
</div>